/*
============================================================================
 Name        : BlockGoods.h
 Author      : WB
 Version     :
 Copyright   : \x{76ca}\x{76df}\x{8f6f}\x{4ef6}
 Description : CBlockGoods declaration
============================================================================
*/

#ifndef BLOCKGOODS_H
#define BLOCKGOODS_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "Block.h"

// CLASS DECLARATION
class CBlockGoods : public CBlock
{
public:
	~CBlockGoods();

	CBlockGoods(CBaseBlock* bsBack);

	void ConstructL();

public:
	virtual void InitPopMenu(const TInt& nType);

	TBool OnMenuEvent(TInt menuId);

	virtual void SetGoods(TInt nGoodsID);

	virtual void SetGoods(const TGoods& goods);

	virtual void OnKeyDown(TInt keyCode);

	virtual void SetBK(const TInt16& aGroupID,const TDesC& aGroupDes);

	void DynInitMenu();

	void SizeChanged();
	
	void BeforeDraw(CFbsBitGc& g) const;

public: // from MTabbarObserver
	void HandleTabbarCommand(TInt aCommand);
	// from MTitlebarObserver
	void HandleTitlebarCommand(TInt aCommand);

private:
	TInt16	m_sGroup;
	TBuf<32> m_strGroup;
protected:
	TInt m_nHelpType;
};

#endif // BLOCKGOODS_H
